package com.example.flowerpcback.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "返回结果")
public class CommonResp<T> {
    @ApiModelProperty(value = "状态码",example = "200")
    private int code= 200;

    @ApiModelProperty(value = "消息",example = "请求成功")
    private  String message;

    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
